using System.Text;

namespace TheBoard.Models
{
    public class HexConvert
    {
        public static string Encode(byte[] bytes)
        {
            var sb = new StringBuilder();
            for (var i = 0; i < bytes.Length; ++i)
            {
                sb.Append(bytes[i].ToString("x2"));
            }
            return sb.ToString();
        }
    }
}